﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="PSchoolBaseInfo.aspx.cs" Inherits="Sagacity.NC.Web.BaokaoManager.PSchool.PSchoolBaseInfo" %>
<%@ Register Src="~/Form/HostFormCommon.ascx" TagName="HostFormCommon" TagPrefix="uc1" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <title>学校基础信息</title>
    <link href="../../resources/css/main.css" rel="stylesheet" type="text/css" />
    <script>

        var showRedirection = "addScuccessFuc()";
        function addScuccessFuc() {
            Ext.MessageBox.confirm('注意', '保存成功。<p>点击【是】跳转到详细页面，点击【否】继续添加。<p>是否跳转到详细页面？', function(btn) {
                if (btn == "yes") {
                    //categoryId = xmlDoc.selectSingleNode("Root/Fields/Field[@Name='CATEGORY_ID'][@EnableEdit='True']").getAttribute("Value");
                    var params = "ResourceId=" + document.getElementById("hidresourceId").value + "&SchoolId=" + selectedKeyId + "&showStyle=2" ;
                    var url = "PSchoolDetailInfo.aspx?" + params;

                    self.parent.tabSchoolInfoTabs.activeTab.autoLoad.url = url;
                    self.parent.tabSchoolInfoTabs.activeTab.reload();
                }
                if (btn == "no") {
                    HostFormCommon1_hidExcuteState.setValue(0);
                }
            }

             );
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ext:ScriptManager ID="ScriptManager1" CleanResourceUrl="false" runat="server" Theme="Default" />
       <asp:HiddenField ID="hidresourceId" runat="server" />
        <ext:ViewPort ID="temp" runat="server">
            <Body>
            <uc1:HostFormCommon ID="HostFormCommon1" runat="server" />
            </Body>            
        </ext:ViewPort> 
    </div>
    </form>
</body>
</html>